package controller;import javax.annotation.Resource;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.servlet.ModelAndView;import org.springframework.web.servlet.mvc.Controller;import service.TaskService;@org.springframework.stereotype.Controllerpublic class TaskController implements Controller {	@Resource(name = "taskServiceImpl")	private TaskService ts;	public TaskService getTs() {		return ts;	}	public void setTs(TaskService ts) {		this.ts = ts;	}	@RequestMapping("task")	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {		ModelAndView mv = new ModelAndView("task");		mv.addObject("list", ts.getList());		return mv;	}}